class Rectangle:
    def __init__(self,w=1,h=2):
        self.__w,self.__h=w,h
    def get_area(self):
        return self.__h*self.__w
    def get_perimeter(self):
        return (self.__w+self.__h)*2
    @property
    def width(self):
        return self.__w

    @width.setter
    def width(self, width):
        self.__w = width
    @property
    def height(self):
        return self.__h

    @height.setter
    def height(self, height):
        self.__h = height


def main():
    w, h = map(float, input().split())
    rect1 = Rectangle()
    rect1.width = w
    rect1.height = h
    w, h = map(float, input().split())
    rect2 = Rectangle(w, h)
    print("%.1f %.1f %.1f %.1f" % (rect1.width, rect1.height, rect1.get_area(), rect1.get_perimeter()))
    print("%.1f %.1f %.1f %.1f" % (rect2.width, rect2.height, rect2.get_area(), rect2.get_perimeter()))


main()
